package com.woniuxy01;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-08-27 11:05
 */
public class Test07 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
//        System.out.println("输入运算符");
//        char operator = sc.next().charAt(0);
//        System.out.println(operator=='+');
//        System.out.println(operator=='-');
        System.out.println("输入运算符");
        String str = sc.next();
        System.out.println(str.equals("+"));
        System.out.println(str.equals("-"));
    }
}